<?php 
class customer_colmod{
    protected $colMod;
    function customer_colmod($g=array())
    {
        $this->colMod=array(
            array(  
                "text"          =>"Mã Số"            
                ,"datafield"    =>"ID" 
                ,"hidden"       =>true
                ),
            array(  
                "text"          =>"Mã khách hàng"            
                ,"datafield"    =>"CustomerID" 
                ,"cellsalign"   =>"right"
                ,"width"        => 160    
                ),
            array(  
                "text"          =>"Tên khách hàng"            
                ,"datafield"    =>"CustomerName" 
                //,"width"        => 220    
                ),
            array(  
                "text"          =>"Địa chỉ"            
                ,"datafield"    =>"Address" 
                //,"width"        => 220   
                ),
            array(  
                "text"          =>"Email"            
                ,"datafield"    =>"Mail" 
                //,"width"        => 200 
                ),
            array(  
                "text"          =>"Ngày sinh"            
                ,"datafield"    =>"Birth" 
                ,"width"        => 120   
                ,"hidden"       =>true
                ),
            array(  
                "text"          =>"Social"            
                ,"datafield"    =>"Type" 
                ,"width"        => 120   
                ,"columntype"   =>"dropdownlist"
                ,"filtertype"   =>"checkedlist"  
                ,"filteritems"    => array('Google', 'Yahoo', 'Facebook')
                ,"hidden"       =>true
                ),
            array(  
                "text"          =>"Điện thoại"            
                ,"datafield"    =>"Phone" 
                ,"width"        => 80   
                //,"hidden"       =>true
                ),
            array(  
                "text"          =>"Nhóm"            
                ,"datafield"    =>"GroupName"
                ,"columntype"   =>"dropdownlist"
                ,"filtertype"   =>"list"
                ,"filteritems"    => $g
                ,"width"        => 160   
                ,"editable"     =>true
                ),
            array(  
                "text"          =>"Insert"            
                ,"datafield"    =>"Insert" 
                ,"type"         =>"date"
                ,"width"        => 220    
                //,"filterable"   =>true
                ,"filtertype"   =>"date"  
                //,"editable"     =>false
                //,"sortable"     =>true       
                //,"cellsalign"   =>"left"      
                ,"cellsformat"  =>'yyyy-MM-dd HH:mm:ss'
                //,"hidden"       =>true
                ),
            array(  
                "text"          =>"Update"            
                ,"datafield"    =>"Update" 
                ,"type"         =>"date"
                ,"width"        => 220    
                //,"filterable"   =>true
                ,"filtertype"   =>"date"  
                //,"editable"     =>false
                //,"sortable"     =>true       
                //,"cellsalign"   =>"left"      
                ,"cellsformat"  =>'yyyy-MM-dd HH:mm:ss'
                ,"hidden"       =>true
                ),
            array(  
                "text"          =>"Delete"            
                ,"datafield"    =>"Delete" 
                ,"type"         =>"date"
                ,"width"        => 220    
                //,"filterable"   =>true
                ,"filtertype"   =>"date"  
                //,"editable"     =>false
                //,"sortable"     =>true       
                //,"cellsalign"   =>"left"      
                ,"cellsformat"  =>'yyyy-MM-dd HH:mm:ss'
                ,"hidden"       =>true
                )
        );
    }
    function get(){
        return $this->colMod;
    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */